package com.nfc.lock.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 配电室新增请求
 */
@Data
@Schema(description = "配电室新增请求")
public class RoomAddRequest {

    @Schema(description = "配电室名称")
    @NotBlank(message = "配电室名称不能为空")
    private String roomName;

    @Schema(description = "所属区域ID")
    @NotNull(message = "所属区域不能为空")
    private Long regionId;

    @Schema(description = "经度")
    @NotNull(message = "经度不能为空")
    private BigDecimal longitude;

    @Schema(description = "纬度")
    @NotNull(message = "纬度不能为空")
    private BigDecimal latitude;

    @Schema(description = "地址")
    private String address;

}
